PUT
/
api
/
v3
/
sites
/
{site_uuid}
/
smart-charging
Update smart charging settings
curl --request PUT \
  --url https://cloud.volttime.com/api/v3/sites/{site_uuid}/smart-charging \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "timezone": "Asia/Yekaterinburg",
  "smart_charging": "off_peak",
  "day_ahead_pricing_strategy": "automatic",
  "day_ahead_pricing_threshold": 16,
  "off_peak_start": "13:42",
  "off_peak_end": "13:42"
}'
{
  "data": {
    "timezone": null,
    "smart_charging": "disabled",
    "day_ahead_pricing_strategy": "automatic",
    "day_ahead_pricing_threshold": null,
    "day_ahead_pricing_smart_mode_price": null,
    "off_peak_start": "23:00",
    "off_peak_end": "07:00"
  }
}

Authorizations

Authorization
string
header
required

See the documentation for more information.

Path Parameters

site_uuid
string
required

Body

application/json
timezone
string
required

Must be a valid time zone, such as <code>Africa/Accra</code>.

Example:

"Asia/Yekaterinburg"

smart_charging
enum<string>
required
Available options:
day_ahead_pricing,
disabled,
off_peak
Example:

"off_peak"

day_ahead_pricing_strategy
enum<string>
Available options:
automatic,
manual
Example:

"automatic"

day_ahead_pricing_threshold
integer

This field is required when <code>day_ahead_pricing_strategy</code> is <code>manual</code>.

Example:

16

off_peak_start
string

This field is required when <code>smart_charging</code> is <code>off_peak</code>. Must be a valid date in the format <code>H:i</code>.

Example:

"13:42"

off_peak_end
string

This field is required when <code>smart_charging</code> is <code>off_peak</code>. Must be a valid date in the format <code>H:i</code>.

Example:

"13:42"

Response

200 - application/json
data
object